<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">




<title>40条ASP.NET开发Tip - 点点滴滴 简简单单  - 博客园</title>
<meta name="keywords" content="40条ASP.NET开发Tip">



<link title="RSS" type="application/rss+xml" rel="alternate" href="http://www.cnblogs.com/zhuqil/rss">
<link title="RSD" type="application/rsd+xml" rel="EditURI" href="http://www.cnblogs.com/zhuqil/rsd.xml"> 
  



<link rel="stylesheet" type="text/css" href="index.css" media="all">
</head>
<body>
    <form name="Form1" method="post" action="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html" id="Form1">
<div>
<input name="__EVENTTARGET" id="__EVENTTARGET" value="" type="hidden">
<input name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" type="hidden">
<input name="__VIEWSTATE" id="__VIEWSTATE" value="" type="hidden">
</div>




        &nbsp;&nbsp;  <font>朱祁林</font> &nbsp;&nbsp; 
&nbsp;&nbsp;  <font>zhuqilin</font> &nbsp;&nbsp; 
<!--done-->
<div id="home">
<div id="header">
	<div id="blogTitle">
	<a id="lnkBlogLogo" href="http://www.cnblogs.com/zhuqil/"><img id="blogLogo" src="logo.gif" alt="返回主页"></a>			
		
<!--done-->
<h1><a id="Header1_HeaderTitle" class="headermaintitle" href="http://www.cnblogs.com/zhuqil/"></a><table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td style=""><font style="font-size: 30pt; width: 100%; color: rgb(49, 60, 64); line-height: 150%; font-family: 华文新魏;"><b><a href="http://www.cnblogs.com/zhuqil">点点滴滴 简简单单</a></b></font> </td></tr></tbody></table></h1>
<h2><span style="color: rgb(0, 128, 128); font-family: '华文新魏'; font-size: 18px;">做好简单的事情,做好简单的人！</span>    &nbsp;&nbsp;  <div style="display: none;"> 朱祁林</div>&nbsp;&nbsp;  <div style="display: none;"> zhuqilin</div>&nbsp;&nbsp;  </h2>



		
	</div><!--end: blogTitle 博客的标题和副标题 -->
	<div id="navigator">
		
<!--done-->
			<ul id="navList">
				<li><a id="MyLinks1_HomeLink" class="menu" href="http://www.cnblogs.com/">博客园</a></li>
				<li><a id="MyLinks1_SpaceLink" class="menu" href="http://space.cnblogs.com/">社区</a></li>
				<li><a id="MyLinks1_MyHomeLink" class="menu" href="http://www.cnblogs.com/zhuqil/">首页</a></li>
				<li><a id="MyLinks1_NewPostLink" class="menu" href="http://www.cnblogs.com/zhuqil/admin/EditPosts.aspx?opt=1">新随笔</a></li>
				<li><a id="MyLinks1_ContactLink" accesskey="9" class="menu" href="http://space.cnblogs.com/msg/send/%e9%ba%92%e9%ba%9f">联系</a></li>
				<li><a id="MyLinks1_Admin" class="menu" href="http://www.cnblogs.com/zhuqil/admin/EditPosts.aspx">管理</a></li>
				<li><a id="MyLinks1_Syndication" class="menu" href="http://www.cnblogs.com/zhuqil/rss">订阅</a>
				<a id="MyLinks1_XMLLink" class="aHeaderXML" href="http://www.cnblogs.com/zhuqil/rss"><img src="rss.gif" alt="订阅" style="border-width: 0px;"></a></li>
			</ul>


		<div class="blogStats">
			
			
<!--done-->
随笔- 91&nbsp;
文章- 0&nbsp;
评论- 481&nbsp;

			
		</div><!--end: blogStats -->
	</div><!--end: navigator 博客导航栏 -->
</div><!--end: header 头部 -->

<div id="main">
	<div id="mainContent">
	<div class="forFlow">
		
					
<!--done-->
<div id="topics">
	<div class="post">
		<h1 class="postTitle">
			<a id="ctl04_TitleUrl" class="postTitle2" href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html">40条ASP.NET开发Tip</a>
		</h1>
		<div class="clear"></div>
		<div class="postBody">
			<p><span style="color: red; font-size: 14pt;">欢迎拍砖，共同进步！！！</span></p>
<p><span>1、在compilation 下，请设置debug=false ，如下：</span></p>
<p><span></span><span class="code-keyword"></span></p>
<div class="cnblogs_code">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: rgb(0, 0, 0);">default&nbsp;Language="c#"&nbsp;debug="false"&gt;</span></div></div>
<p>&nbsp;</p>
<p>2、请使用Server.Transfer代替Response.Redirect。</p>
<p>&nbsp;</p>
<p><span class="code-keyword">3、使用Validator控件，请要经常检查Page.IsValid。</span></p>
<p><span class="code-keyword"></span>&nbsp;</p>
<p><span class="code-keyword">4、请使用foreach循环，而不是为字符串迭代循环。</span></p>
<p><span class="code-keyword"></span>&nbsp;</p>
<p><span class="code-keyword">5、请使用客户端验证方式(不要每次都在服务端验证)。</span></p>
<p><span class="code-keyword"></span>&nbsp;</p>
<p><span class="code-keyword">6、为了避免重复代码执行，请检查“Page.IsPostBack”。</span></p>
<p><span class="code-keyword"></span>&nbsp;</p>
<p>7、GIF 和PNG类似，但是PNG通常产生一个较小体积的文件。（当然，有些浏览器不支持PNG格式）</p>
<p>&nbsp;</p>
<p>8、更新二进制文件时，请使用AppOffline.htm 。</p>
<p>&nbsp;</p>
<p>9、除非需要，否则请关闭跟踪。</p>
<p><span class="code-keyword"></span></p>
<div class="cnblogs_code">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">trace&nbsp;</span><span style="color: rgb(255, 0, 0);">enabled</span><span style="color: rgb(0, 0, 255);">="false"</span><span style="color: rgb(255, 0, 0);">&nbsp;requestLimit</span><span style="color: rgb(0, 0, 255);">="10"</span><span style="color: rgb(255, 0, 0);">&nbsp;pageOutput</span><span style="color: rgb(0, 0, 255);">="false"</span><span style="color: rgb(255, 0, 0);">&nbsp;traceMode</span><span style="color: rgb(0, 0, 255);">="SortByTime"</span><span style="color: rgb(255, 0, 0);">&nbsp;localOnly</span><span style="color: rgb(0, 0, 255);">="true"</span><span style="color: rgb(0, 0, 255);">/&gt;</span></div></div>
<p><span class="code-keyword"></span>&nbsp;</p>
<p><span class="code-keyword">10、编译页面，请禁用AutoEventWireup。在Machine.config文件中请设置AutoEventWireup为false。</span></p>
<p><span class="code-keyword"></span>&nbsp;</p>
<p><span class="code-keyword">11、如果不需要，请关闭Session会话。</span></p>
<p><span class="code-keyword"></span><span class="code-keyword"><span class="code-keyword"></span></span></p>
<div class="cnblogs_code">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">sessionstate&nbsp;</span><span style="color: rgb(255, 0, 0);">timeout</span><span style="color: rgb(0, 0, 255);">="20"</span><span style="color: rgb(255, 0, 0);">&nbsp;cookieless</span><span style="color: rgb(0, 0, 255);">="false"</span><span style="color: rgb(255, 0, 0);">&nbsp;mode</span><span style="color: rgb(0, 0, 255);">="Off"</span><span style="color: rgb(255, 0, 0);">&nbsp;stateconnectionstring</span><span style="color: rgb(0, 0, 255);">="tcpip=127.0.0.1:42424"</span><span style="color: rgb(255, 0, 0);">&nbsp;sqlconnectionstring</span><span style="color: rgb(0, 0, 255);">="data&nbsp;source=127.0.0.1;Trusted_Connection=no"</span><span style="color: rgb(0, 0, 255);">&gt;</span></div></div>
<p><span class="code-keyword"><span class="code-keyword"></span></span>&nbsp;</p>
<p><span class="code-keyword"><span class="code-keyword">12、在你生成最终版本的应用程序之前，请选择Release模式。默认是Debug。</span></span></p>
<p><span class="code-keyword"><span class="code-keyword"></span></span>&nbsp;</p>
<p><span class="code-keyword"><span class="code-keyword">13、如果不需要请禁用ViewState 。</span></span></p>
<p><span class="code-keyword"><span class="code-keyword"></span></span><span class="code-keyword"><span class="code-keyword"></span></span></p>
<div class="cnblogs_code">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: rgb(0, 0, 0);">EnableViewState="false"</span></div></div>
<p>&nbsp;</p>
<p>14、请避免频繁的访问数据库。</p>
<p>&nbsp;</p>
<p>15、使用缓存提高你的应用程序的性能。</p>
<p>&nbsp;</p>
<p>16、验证所有的用户输入。</p>
<p>&nbsp;</p>
<p>17、请最后释放所有资源。</p>
<p>&nbsp;</p>
<p>18、String 和Stringbuilder。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 修改字符串时，使用Stringbuilder而不是String ，在每次字符串修改的时候，String都会占据不同的内存空间，而Stringbuilder只使用同一个内存空间</p>
<p>&nbsp;</p>
<p>19、切勿直接使用对象的值，先从本地变量获取对象的值，然后再使用。因为直接读取对象的值比读取变量更花时间。</p>
<p>&nbsp;</p>
<p>20、避免异常：使用if。</p>
<p>&nbsp;</p>
<p>21、代码优化：避免使用：x = x +1，而是使用x+=1比较好。</p>
<p>&nbsp;</p>
<p>22、数据访问技术：DataReaders提供快速有效的数据检索方法。在性能方面，DataReader是速度远远超过DataSets 。</p>
<p>&nbsp;</p>
<p>23、在做一个笨重的ASP代码的处理之前，你进行检查以确保Response.IsClientConnected。</p>
<p>&nbsp;</p>
<p>24、避免session变量，因为每个ASP页面是在不同的线程运行和session调用将会被逐一序列化。这样会降低应用程序。你可以使用QueryString集合或者表单上面的hidden变量来保存值。</p>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">25、使buffer有效，能提高性能，如：</div>
<div class="cnblogs_code">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="background-color: rgb(255, 255, 0); color: rgb(0, 0, 0);">&lt;%</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;response.buffer</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">true</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;</span><span style="background-color: rgb(255, 255, 0); color: rgb(0, 0, 0);">%&gt;</span></div></div>
<p>&nbsp;<span class="code-keyword"><span class="code-keyword">接着使用：</span></span></p>
<p><span class="code-keyword"><span class="code-keyword"></span></span><span class="code-keyword"><span class="code-keyword"></span></span></p>
<div class="cnblogs_code">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="background-color: rgb(255, 255, 0); color: rgb(0, 0, 0);">&lt;%</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;response.flush</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">true</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;</span><span style="background-color: rgb(255, 255, 0); color: rgb(0, 0, 0);">%&gt;</span></div></div>
<p>&nbsp;</p>
<p>26、使用Repeater控件代替DataGrid，DataList，因为它是高效的，可定制的，和可编程的。</p>
<p><span class="code-keyword"></span>&nbsp;</p>
<p>27、在数据库中检索大量数据，数据列表消耗更多的时间。</p>
<p>&nbsp;&nbsp;&nbsp; 分页将显示特定的数据，但是要考虑所有数据负载。只取当前页需要的数据。</p>
<p>&nbsp;</p>
<p>28、避免内嵌JavaScript和CSS。</p>
<p>&nbsp;</p>
<p>29、使用单个的css文件，而不是多个css文件。</p>
<div dir="ltr">&nbsp;&nbsp;&nbsp; 请尽量将您所有的css合并成一个css的类文件，不管文件大小，大量的.css文件会造成大量的请求。.css文件通常是由浏览器缓存，这样一个单一的沉重的.css文件不会导致在每个页面请求时会有漫长的等待。</div>
<div dir="ltr">&nbsp;&nbsp;&nbsp; 内嵌.CSS类导致HTML沉重，因此我觉得：首先考虑一个single.css文件。</div>
<div dir="ltr">&nbsp;</div>
<p>30、减少cookie的大小。</p>
<p>&nbsp;</p>
<p>31、压缩CSS, JavaScript 和Images。</p>
<p>可以使用在线的压缩，压缩文件，将下列网页和优化的代码替换为您的文件内容。</p>
<p><a href="http://iceyboard.no-ip.org/projects/css_compressor" target="_top">http://iceyboard.no-ip.org/projects/css_compressor</a>[<a title="New Window" href="http://iceyboard.no-ip.org/projects/css_compressor" target="_top">^</a>]&nbsp; CSS 压缩<br><a href="http://www.xtreeme.com/javascript-optimizer/" target="_top">www.xtreeme.com/javascript-optimizer/</a>[<a title="New Window" href="http://www.xtreeme.com/javascript-optimizer/" target="_top">^</a>] .&nbsp; JS 压缩</p>
<p>32、适当地使用缓存。</p>
<p>i、页面输出缓存：</p>
<div class="cnblogs_code">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="background-color: rgb(255, 255, 0); color: rgb(0, 0, 0);">&lt;%</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">@&nbsp;OutputCache&nbsp;Duration</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(128, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(128, 0, 0);">3600</span><span style="background-color: rgb(245, 245, 245); color: rgb(128, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;VaryByParam</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(128, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(128, 0, 0);">none</span><span style="background-color: rgb(245, 245, 245); color: rgb(128, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;</span><span style="background-color: rgb(255, 255, 0); color: rgb(0, 0, 0);">%&gt;</span></div></div>
<p>ii、页片段缓存：</p>
<p>在每个用户控件中写页面输出缓存</p>
<p>iii、数据缓存：</p>
<div id="cnblogs_code_open_d3295ee4-8fc8-43b8-834f-d9d225b22412" class="cnblogs_code_hide">
<div class="cnblogs_code" onclick="cnblogs_code_show('909a8527-83c4-44bd-a987-9a4de776782b')"><img id="code_img_closed_909a8527-83c4-44bd-a987-9a4de776782b" class="code_img_closed" alt="" src="contractedblock.gif"><img style="display: none;" id="code_img_opened_909a8527-83c4-44bd-a987-9a4de776782b" class="code_img_opened" onclick="cnblogs_code_hide('909a8527-83c4-44bd-a987-9a4de776782b',event)" src="expandedblockstart.gif"><span class="cnblogs_code_collapse">代码</span> 
<div id="cnblogs_code_open_909a8527-83c4-44bd-a987-9a4de776782b" class="cnblogs_code_hide">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script&nbsp;</span><span style="color: rgb(255, 0, 0);">language</span><span style="color: rgb(0, 0, 255);">="C#"</span><span style="color: rgb(255, 0, 0);">&nbsp;runat</span><span style="color: rgb(0, 0, 255);">="server"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;<br>&nbsp;Protected&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">void</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;Page_Load&nbsp;(Object&nbsp;src,&nbsp;EventArgs&nbsp;e)&nbsp;<br>{&nbsp;&nbsp;&nbsp;<br>&nbsp;DataView&nbsp;dv&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;(DataView)&nbsp;Cache.&nbsp;Get&nbsp;(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">EmployeesDataView</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);&nbsp;&nbsp;&nbsp;<br>&nbsp;If&nbsp;(dv&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">==</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">null</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">)<br>&nbsp;{&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">&nbsp;wasn't&nbsp;there</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"><br></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;&nbsp;SqlConnection&nbsp;conn&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">new</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;SqlConnection&nbsp;(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">server=localhost;uid=sa;pwd=;database=Test</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);&nbsp;&nbsp;<br>&nbsp;&nbsp;SqlDataAdapter&nbsp;da&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">new</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;SqlDataAdapter&nbsp;(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">select&nbsp;*&nbsp;from&nbsp;Employees</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,&nbsp;conn);&nbsp;&nbsp;<br>&nbsp;&nbsp;Dataset&nbsp;ds&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">new</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;DataSet();<br>&nbsp;&nbsp;da.Fill(ds,&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Employees</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;dv&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;ds.Tables[</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Employees</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">].DefaultView;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;Cache.Insert&nbsp;(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">EmployeesDataView</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,&nbsp;dv);<br>&nbsp;&nbsp;conn.Close();<br>}&nbsp;&nbsp;&nbsp;<br>&nbsp;Else&nbsp;&nbsp;&nbsp;<br>&nbsp;Response.Write&nbsp;(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&lt;h2&gt;Loaded&nbsp;employees&nbsp;from&nbsp;data&nbsp;cache!&nbsp;&lt;/h2&gt;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);&nbsp;&nbsp;<br>&nbsp;lb1.DataSource&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;dv;&nbsp;&nbsp;<br>&nbsp;lb1.DataTextField&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Name</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;lb1.DataValueField&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&nbsp;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Age</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">;&nbsp;&nbsp;&nbsp;<br>&nbsp;DataBind&nbsp;()&nbsp;;<br>}&nbsp;&nbsp;&nbsp;<br></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;</span></div></div></div>
<p>&nbsp;</p></div>
<p>33、服务器端使用诸如Port80s压缩软件<a href="http://www.port80software.com/products/httpzip/" target="_top">http://www.port80software.com/products/httpzip/</a>[<a title="New Window" href="http://www.port80software.com/products/httpzip/" target="_top">^</a>]。</p>
<p>&nbsp;</p>
<p>34、使用了“using”。</p>
<p>&nbsp;</p>
<p>35、不要声明成员变量为&nbsp;public 或者proteted，尽量使用private 成员变量和public/protected 属性。</p>
<p>&nbsp;</p>
<p>36、使用strString=string.Empty&nbsp;代替 strString="" 。</p>
<p>&nbsp;</p>
<p>37、请尽可能减轻你的页面文件，尽量避免不必要的标签，例如使用div代替table。</p>
<p>&nbsp;</p>
<p>38、在div中写静态的消息，必要的时候才显示出来。这比你设置服务端的label和div的text属性快。</p>
<p>&nbsp;&nbsp;</p>
<p>39、如果可能的话，一次性检索数据库中的数据。尽可能不要添加数据库的访问。因此，整合来自不同表datafields和选择它们。</p>
<p>&nbsp;</p>
<p>40、给WebControl取个简短的名字。</p>
<p>&nbsp;</p><div id="MySignature">作者：<a href="http://zhuqil.cnblogs.com/" target="_top"><font color="#9f8248">朱祁林</font></a><br>
出处：<a href="http://zhuqil.cnblogs.com/" target="_top"><font color="#9f8248">http://zhuqil.cnblogs.com</font></a> <br>
本文版权归作者和博客园共有，欢迎转载，但未经作者同意必须保留此段声明，且在文章页面明显位置给出原文连接，否则保留追究法律责任的权利。</div>
<div id="digg_block">
<div id="div_digg">										
	<div class="diggit" onclick="DiggIt(1649099,42110,1)"> 
		<span class="diggnum" id="digg_count_1649099">11</span>
	</div>
	<div class="buryit" onclick="DiggIt(1649099,42110,2)"> 
		<span class="burynum" id="bury_count_1649099">0</span>
	</div>
	<div class="clear"></div>
	<span style="display: none;" id="span_isdigged_1649099">0</span>	
	<div class="diggword" id="digg_word_1649099">(请您对文章做出评价)</div>	
</div>
</div>
<div class="clear"></div>
<div id="post_next_prev">
<a href="http://www.cnblogs.com/zhuqil/archive/2010/01/15/1648321.html">« </a> 上一篇：<a href="http://www.cnblogs.com/zhuqil/archive/2010/01/15/1648321.html" title="发布于2010-01-15 10:29">如何成为人尽皆知的C#开发人员</a><br>

</div>








		</div>
		<div class="postDesc">posted @ 2010-01-16 12:42 <a href="http://www.cnblogs.com/zhuqil/">麒麟</a> 阅读(1856) <a href="#commentform">评论(14)</a> &nbsp;<a href="http://www.cnblogs.com/zhuqil/admin/EditPosts.aspx?postid=1649099">编辑</a> <a href="http://www.cnblogs.com/zhuqil/AddToFavorite.aspx?id=1649099">收藏</a> <a href="#" onclick="PutInWz();return false;">网摘</a>  </div>
	</div>
	<img src="1649099.html" height="1" width="1">
	
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html"
dc:identifier="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html"
dc:title=""
trackback:ping="http://www.cnblogs.com/zhuqil/services/trackbacks/1649099.aspx" />
</rdf:RDF>
-->

</div><!--end: topics 文章、评论容器-->
<a name="pagedcomment"></a>
<!--done-->
<br>
<div class="feedback_area_title">发表评论</div>
<div class="feedbackNoItems"><span id="span_comment_maxid" style="display: none;">1748624</span></div>
	

		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Megacycled",1748432,"zhV/jb+jsd5spV+zLrDqbGUF8GJTPpE5AiByFTTCv1psKAyletn1cw==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748432,"zhV/jb+jsd5spV+zLrDqbGUF8GJTPpE5AiByFTTCv1psKAyletn1cw==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Megacycled" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl00_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl00$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl00_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748432">#1楼</a><a name="1748432" id="comment_anchor_1748432"></a>2010-01-16 13:00 | <a id="Comments1_CommentList_ctl00_NameLink" href="http://www.cnblogs.com/megacycled/" target="_top">Megacycled</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/Megacycled" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748432" class="blog_comment_body">5、请使用客户端验证方式，（减少与服务器端交互次数）。<br>切不可仅作客户端验证。<br><br>7、GIF 和PNG类似，但是PNG 通常产生一个较小的文件。<br>区别好png8，png24，png32，不要假设。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("麒麟",1748443,"L4HtxFlpEEURjgn+8SshpvVG8ft4fNweffxJ0VBoCeCJ2JjysCLJpQ==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748443,"L4HtxFlpEEURjgn+8SshpvVG8ft4fNweffxJ0VBoCeCJ2JjysCLJpQ==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e9%ba%92%e9%ba%9f" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl01_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl01$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl01_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748443">#2楼</a><a name="1748443" id="comment_anchor_1748443"></a>[<span class="louzhu">楼主</span>]2010-01-16 13:25 | <a id="Comments1_CommentList_ctl01_NameLink" href="http://www.cnblogs.com/zhuqil/" target="_top">麒麟</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e9%ba%92%e9%ba%9f" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748443" class="blog_comment_body"><fieldset class="comment_quote"><legend><a href="#1748432" title="查看引用原文">引用</a></legend>Megacycled：<br>5、请使用客户端验证方式，（减少与服务器端交互次数）。<br>切不可仅作客户端验证。<br><br>7、GIF 和PNG类似，但是PNG 通常产生一个较小的文件。<br>区别好png8，png24，png32，不要假设。</fieldset><br>不好意思，没写清楚，客户端验证肯定远远不够。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("joylee",1748448,"NqpMJeThJJu9qadCF40/LWh5ZF/utJ+MYwXrxgnQhcs+2pT2WJmEqQ==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748448,"NqpMJeThJJu9qadCF40/LWh5ZF/utJ+MYwXrxgnQhcs+2pT2WJmEqQ==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=joylee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl02_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl02$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl02_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748448">#3楼</a><a name="1748448" id="comment_anchor_1748448"></a>2010-01-16 13:40 | <a id="Comments1_CommentList_ctl02_NameLink" href="http://www.cnblogs.com/joylee/" target="_top">joylee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/joylee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748448" class="blog_comment_body">基本同意楼主观点<br><br>18、String 和Stringbuilder<br>请参考老赵的某篇文章<a href="http://www.cnblogs.com/jeffreyzhao/archive/2009/11/26/string-concat-perf-1-benchmark.html" target="_top">http://www.cnblogs.com/jeffreyzhao/archive/2009/11/26/string-concat-perf-1-benchmark.html</a>，结论不能太武断<br><br>29、使用单个的css文件，而不是多个css文件<br>要在HTTP连接和页面加载速度中有个取舍，现在很多网站首页都是直接把CSS写页面中，减少HTTP连接</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("盘诚",1748458,"ymFwiCyYvfUUv4SSdwpEX5D/RHkQrI9k13Y9F2LjKOf6a1sB2Ug2cA==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748458,"ymFwiCyYvfUUv4SSdwpEX5D/RHkQrI9k13Y9F2LjKOf6a1sB2Ug2cA==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e7%9b%98%e8%af%9a" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl03_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl03$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl03_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748458">#4楼</a><a name="1748458" id="comment_anchor_1748458"></a>2010-01-16 14:22 | <a id="Comments1_CommentList_ctl03_NameLink" href="http://www.cnblogs.com/livit/" target="_top">盘诚</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e7%9b%98%e8%af%9a" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748458" class="blog_comment_body">22、数据访问技术：DataReaders提供快速有效的数据检索方法。在性能方面，DataReader是速度远远超过DataSets 。<br><br><br><br>值得商榷吧。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Nova_Zhang",1748487,"abvIT61LOpr4iiGAEMsvCBozb3L07mXJg8a6biF7GdELaS056NVYhg==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748487,"abvIT61LOpr4iiGAEMsvCBozb3L07mXJg8a6biF7GdELaS056NVYhg==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Nova_Zhang" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl04_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl04$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl04_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748487">#5楼</a><a name="1748487" id="comment_anchor_1748487"></a>2010-01-16 15:21 | <a id="Comments1_CommentList_ctl04_NameLink" href="http://home.cnblogs.com/103447/" target="_top">Nova_Zhang</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/Nova_Zhang" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748487" class="blog_comment_body">2、请使用Server.Transfer代替Response.Redirect。<br>  Server.Transfer 为什么比 Response.Reditrect 好？<br>  用户在前台访问的时候 URL 没有变 内容变了 会不会给客户奇怪的感觉！ 那样用户怎么知道自己访问的是哪一个URL呢？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TimLeaf",1748498,"eQC9dsnN2lHmUOPZwspOTOBZNafidVn9hq1q9/LgdtOtN1Kr0Ik58w==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748498,"eQC9dsnN2lHmUOPZwspOTOBZNafidVn9hq1q9/LgdtOtN1Kr0Ik58w==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TimLeaf" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl05_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl05$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl05_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748498">#6楼</a><a name="1748498" id="comment_anchor_1748498"></a>2010-01-16 15:57 | <a id="Comments1_CommentList_ctl05_NameLink" href="http://www.cnblogs.com/TimLeaf/" target="_top">TimLeaf</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TimLeaf" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748498" class="blog_comment_body">谢谢...要是能简单说明一下各个条目的原因就更好了...</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("海岸线",1748501,"VLlizoFKJWZ+u6PbLL1wC9t6TcWRpVvKsybZvq4cACgnQVGlSdQJdA==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748501,"VLlizoFKJWZ+u6PbLL1wC9t6TcWRpVvKsybZvq4cACgnQVGlSdQJdA==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e6%b5%b7%e5%b2%b8%e7%ba%bf" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl06_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl06$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl06_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748501">#7楼</a><a name="1748501" id="comment_anchor_1748501"></a>2010-01-16 16:06 | <a id="Comments1_CommentList_ctl06_NameLink" href="http://www.cnblogs.com/xhyang110/" target="_top">海岸线</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e6%b5%b7%e5%b2%b8%e7%ba%bf" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748501" class="blog_comment_body"><a href="#1748487" title="查看所回复的评论">@</a>Nova_Zhang<br>赞<br>我也觉得这要分情况啦，根据需求来嘛，</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Console.C#",1748523,"yizmfHZJQdu8zwNGdq4gN/CBpfd0MBtf7gpnP/hWEFWsNjzgEIRDnw==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748523,"yizmfHZJQdu8zwNGdq4gN/CBpfd0MBtf7gpnP/hWEFWsNjzgEIRDnw==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Console.C%23" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl07_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl07$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl07_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748523">#8楼</a><a name="1748523" id="comment_anchor_1748523"></a>2010-01-16 17:08 | <a id="Comments1_CommentList_ctl07_NameLink" href="http://home.cnblogs.com/61724/" target="_top">Console.C#</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/Console.C%23" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748523" class="blog_comment_body">19、切勿直接使用对象的值，先从本地变量获取对象的值，然后再使用。因为直接读取对象的值比读取变量更花时间。<br><br>...例举..下吧?不解呃呵呵</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("liuwei0514",1748533,"sAsMRPoHMiXJq38LfD4EydAxdKznXibipRPh3/RoW3psdDm0ZR82Xw==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748533,"sAsMRPoHMiXJq38LfD4EydAxdKznXibipRPh3/RoW3psdDm0ZR82Xw==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=liuwei0514" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl08_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl08$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl08_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748533">#9楼</a><a name="1748533" id="comment_anchor_1748533"></a>2010-01-16 17:25 | <a id="Comments1_CommentList_ctl08_NameLink" href="http://www.cnblogs.com/liuwei0514/" target="_top">liuwei0514</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/liuwei0514" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748533" class="blog_comment_body">"8、更新二进制文件时，请使用AppOffline.htm 。"<br>这一句不懂～～</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("麒麟",1748538,"L4HtxFlpEEURjgn+8SshpvVG8ft4fNweffxJ0VBoCeCJ2JjysCLJpQ==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748538,"L4HtxFlpEEURjgn+8SshpvVG8ft4fNweffxJ0VBoCeCJ2JjysCLJpQ==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e9%ba%92%e9%ba%9f" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl09_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl09$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl09_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748538">#10楼</a><a name="1748538" id="comment_anchor_1748538"></a>[<span class="louzhu">楼主</span>]2010-01-16 17:42 | <a id="Comments1_CommentList_ctl09_NameLink" href="http://www.cnblogs.com/zhuqil/" target="_top">麒麟</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e9%ba%92%e9%ba%9f" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748538" class="blog_comment_body"><fieldset class="comment_quote"><legend><a href="#1748533" title="查看引用原文">引用</a></legend>liuwei0514：<br>"8、更新二进制文件时，请使用AppOffline.htm 。"<br>这一句不懂～～</fieldset><br>做数据维护的时候，使用AppOffline.htm </span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("麒麟",1748539,"L4HtxFlpEEURjgn+8SshpvVG8ft4fNweffxJ0VBoCeCJ2JjysCLJpQ==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748539,"L4HtxFlpEEURjgn+8SshpvVG8ft4fNweffxJ0VBoCeCJ2JjysCLJpQ==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e9%ba%92%e9%ba%9f" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl10_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl10$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl10_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748539">#11楼</a><a name="1748539" id="comment_anchor_1748539"></a>[<span class="louzhu">楼主</span>]2010-01-16 17:43 | <a id="Comments1_CommentList_ctl10_NameLink" href="http://www.cnblogs.com/zhuqil/" target="_top">麒麟</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e9%ba%92%e9%ba%9f" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748539" class="blog_comment_body"><fieldset class="comment_quote"><legend><a href="#1748523" title="查看引用原文">引用</a></legend>Console.C#：<br>19、切勿直接使用对象的值，先从本地变量获取对象的值，然后再使用。因为直接读取对象的值比读取变量更花时间。<br><br>...例举..下吧?不解呃呵呵</fieldset><br>将对象的值保存在变量里，以后就直接从变量中取</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Vitor_yu",1748554,"LUz9/HM3RtLf5YFsuMJvKAoid1SLyO+KRKJlPc6VOb8l2w+Xkyk+Qw==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748554,"LUz9/HM3RtLf5YFsuMJvKAoid1SLyO+KRKJlPc6VOb8l2w+Xkyk+Qw==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Vitor_yu" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl11_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl11$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl11_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748554">#12楼</a><a name="1748554" id="comment_anchor_1748554"></a>2010-01-16 18:26 | <a id="Comments1_CommentList_ctl11_NameLink" href="http://home.cnblogs.com/83199/" target="_top">Vitor_yu</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/Vitor_yu" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748554" class="blog_comment_body">我來學習的,哈哈</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Jeffrey Zhao",1748607,"VLE/PzZ5Mh0JFecbF3CQRLsuyVmCsadJiw7mKltnrtUpjGpwnjC0jg==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748607,"VLE/PzZ5Mh0JFecbF3CQRLsuyVmCsadJiw7mKltnrtUpjGpwnjC0jg==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Jeffrey+Zhao" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl12_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl12$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl12_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748607">#13楼</a><a name="1748607" id="comment_anchor_1748607"></a>2010-01-16 21:52 | <a id="Comments1_CommentList_ctl12_NameLink" href="http://www.cnblogs.com/JeffreyZhao/" target="_top">Jeffrey Zhao</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/Jeffrey+Zhao" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748607" class="blog_comment_body">我觉得……好像问题挺大的……说清楚“前提”和“为什么”很重要。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("W.SiMin",1748624,"9KvChwbKMaz/nyzsflPyXqYpFXnibY30YZExGDjU70/+dsjYH7ZQtg==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1748624,"9KvChwbKMaz/nyzsflPyXqYpFXnibY30YZExGDjU70/+dsjYH7ZQtg==")' href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=W.SiMin" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl13_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl13$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl13_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1748624">#14楼</a><a name="1748624" id="comment_anchor_1748624"></a><a name="Post"></a>2010-01-16 23:07 | <a id="Comments1_CommentList_ctl13_NameLink" href="http://home.cnblogs.com/103486/" target="_top">W.SiMin</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/W.SiMin" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1748624" class="blog_comment_body">server.translate对JS影响比较严重，要是JS路径不一致的话-_-，老报错</span><br>
			</div>
		</div>
	

<div id="ctl05_comment_form" class="commentform">




<div id="ctl05_divLoginPannel">
<div class="login_tips">注册用户登录后才能发表评论，请 <a href="http://passport.cnblogs.com/login.aspx?ReturnUrl=http%3a%2f%2fwww.cnblogs.com%2fzhuqil%2farchive%2f2010%2f01%2f16%2f1649099.html%3flogin%3d1%23commentform" class="underline">登录</a> 或 <a href="http://passport.cnblogs.com/register.aspx?ReturnUrl=http%3a%2f%2fwww.cnblogs.com%2fzhuqil%2farchive%2f2010%2f01%2f16%2f1649099.html%23Bottom2" class="underline">注册</a> 。</div>
</div>

<div class="itnews c_ad_block" id="itnews">
<a href="http://news.cnblogs.com/" target="_top">IT新闻</a>:<br>

          ·  <a href="http://news.cnblogs.com/n/55127/" target="_top">苹果再度反击 要求ITC封杀诺基亚</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55126/" target="_top">【快乐周末】Google 最新产品： Google Toilet</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55125/" target="_top">纽约时报：Google与中国</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55124/" target="_top">Google 退出中国事件的一些细节解释</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55119/" target="_top">Mozilla扩建数据中心支撑Firefox研发</a><br>
	
</div>


<div id="ad_under_comment" class="c_ad_block">
<a href="http://a4.yeshj.com/rd/34138/" target="_top">每天10分钟，轻松学英语</a><br><br>
<div id="google_ads_div_cnblogs_blogpost_bottom1">
<iframe src="index_1.html" style="border: 0pt none ;" marginheight="0" marginwidth="0" name="google_ads_iframe_cnblogs_blogpost_bottom1" id="google_ads_iframe_cnblogs_blogpost_bottom1" scrolling="no" frameborder="0" height="60" width="468"></iframe></div>

<br>
<div id="google_ads_div_cnblogs_blogpost_bottom">
<iframe src="index_2.html" style="border: 0pt none ;" marginheight="0" marginwidth="0" name="google_ads_iframe_cnblogs_blogpost_bottom" id="google_ads_iframe_cnblogs_blogpost_bottom" scrolling="no" frameborder="0" height="250" width="300"></iframe></div>

</div>
<div id="site_nav_under" class="c_ad_block">
网站导航：<br>
<a href="http://www.cnblogs.com/" target="_top">博客园首页</a> &nbsp;<a href="http://news.cnblogs.com/" target="_top">IT新闻</a> &nbsp;<a href="http://home.cnblogs.com/" target="_top">个人主页</a> &nbsp;<a href="http://home.cnblogs.com/ing/" target="_top">闪存</a> &nbsp;<a href="http://job.cnblogs.com/" target="_top">程序员招聘</a> &nbsp;<a href="http://space.cnblogs.com/" target="_top">社区</a> &nbsp;<a href="http://space.cnblogs.com/q/" target="_top">博问</a> &nbsp;<a href="http://wz.cnblogs.com/" target="_top">网摘</a>
</div>
<div id="ad_under_comment2" class="c_ad_block">
<a href="http://www.china-pub.com/STATIC07/0912/zh_ndcx_091212.asp" target="_top"><img src="chinapub_20091222.jpg" alt="" style="border: 0px none ;"></a><br>
<a href="http://www.china-pub.com/itbook/" target="_top">China-pub 计算机图书网上专卖店！6.5万品种2-8折！</a><br>
<a href="http://www.china-pub.com/static07/0901/zh_jueba_090121.asp" target="_top">China-Pub 计算机绝版图书按需印刷服务</a><br>
</div>

<div id="relative_search"><br><b>在知识库中查看：</b><br> <a href="http://kb.cnblogs.com/a/1649099/">40条ASP.NET开发Tip</a></div>

</div>


				
	</div><!--end: forFlow -->
	</div><!--end: mainContent 主体内容容器-->

	<div id="sideBar">
		<div id="sideBarMain">
			
<!--done-->
<div class="newsItem">
<h3 class="catListTitle">公告</h3>
	<div id="profile_block"><a href="http://home.cnblogs.com/zhuqil/" target="_top">我的主页</a>&nbsp; <a href="http://home.cnblogs.com/zhuqil/detail/" target="_top">个人资料</a><br><a href="http://home.cnblogs.com/zhuqil/ing/" target="_top">我的闪存</a>&nbsp; <a href="http://space.cnblogs.com/msg/send/%e9%ba%92%e9%ba%9f" target="_top">发短消息</a></div>
</div>

			<div id="calendar"><table id="Calendar1_entryCal" class="Cal" title="Calendar" border="0" cellpadding="0" cellspacing="0">
	<tbody><tr><td colspan="7"><table class="CalTitle" border="0" cellspacing="0">
		<tbody><tr><td class="CalNextPrev"><a href="javascript:__doPostBack('Calendar1$entryCal','V3622')" style="color: Black;" title="Go to the previous month">&lt;</a></td><td align="center">2010年1月</td><td class="CalNextPrev" align="right"><a href="javascript:__doPostBack('Calendar1$entryCal','V3684')" style="color: Black;" title="Go to the next month">&gt;</a></td></tr>
	</tbody></table></td></tr><tr><th class="CalDayHeader" abbr="日" scope="col" align="center">日</th><th class="CalDayHeader" abbr="一" scope="col" align="center">一</th><th class="CalDayHeader" abbr="二" scope="col" align="center">二</th><th class="CalDayHeader" abbr="三" scope="col" align="center">三</th><th class="CalDayHeader" abbr="四" scope="col" align="center">四</th><th class="CalDayHeader" abbr="五" scope="col" align="center">五</th><th class="CalDayHeader" abbr="六" scope="col" align="center">六</th></tr><tr><td class="CalOtherMonthDay" align="center">27</td><td class="CalOtherMonthDay" align="center">28</td><td class="CalOtherMonthDay" align="center">29</td><td class="CalOtherMonthDay" align="center">30</td><td class="CalOtherMonthDay" align="center">31</td><td align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/1.html"><u>1</u></a></td><td class="CalWeekendDay" align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/2.html"><u>2</u></a></td></tr><tr><td class="CalWeekendDay" align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/3.html"><u>3</u></a></td><td align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/4.html"><u>4</u></a></td><td align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/5.html"><u>5</u></a></td><td align="center">6</td><td align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/7.html"><u>7</u></a></td><td align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/8.html"><u>8</u></a></td><td class="CalWeekendDay" align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/9.html"><u>9</u></a></td></tr><tr><td class="CalWeekendDay" align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/10.html"><u>10</u></a></td><td align="center">11</td><td align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/12.html"><u>12</u></a></td><td align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/13.html"><u>13</u></a></td><td align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/14.html"><u>14</u></a></td><td align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/15.html"><u>15</u></a></td><td class="CalWeekendDay" align="center"><a href="http://www.cnblogs.com/zhuqil/archive/2010/1/16.html"><u>16</u></a></td></tr><tr><td class="CalTodayDay" align="center">17</td><td align="center">18</td><td align="center">19</td><td align="center">20</td><td align="center">21</td><td align="center">22</td><td class="CalWeekendDay" align="center">23</td></tr><tr><td class="CalWeekendDay" align="center">24</td><td align="center">25</td><td align="center">26</td><td align="center">27</td><td align="center">28</td><td align="center">29</td><td class="CalWeekendDay" align="center">30</td></tr><tr><td class="CalWeekendDay" align="center">31</td><td class="CalOtherMonthDay" align="center">1</td><td class="CalOtherMonthDay" align="center">2</td><td class="CalOtherMonthDay" align="center">3</td><td class="CalOtherMonthDay" align="center">4</td><td class="CalOtherMonthDay" align="center">5</td><td class="CalOtherMonthDay" align="center">6</td></tr>
</tbody></table>
</div>
			
			<div id="leftcontentcontainer">
				
<div id="side_ing_block">
<h3 class="catListTitle">最新闪存</h3>
<ul><li>WCF <a href="http://home.cnblogs.com/ing/37671/" class="ing_lnk">08-14 15:59</a></li><li>xml <a href="http://home.cnblogs.com/ing/36561/" class="ing_lnk">08-04 08:42</a></li><li><a href="http://home.cnblogs.com/zhuqil/ing/" class="ing_lnk">更多闪存...</a></li></ul>
</div>



<div class="mySearch">
<h3 class="catListTitle">搜索</h3>
<div class="div_my_zzk"><input value="" id="q" onkeydown="return zzk_go_enter(event);" class="input_my_zzk" type="text">&nbsp;<input onclick="zzk_go()" value="找找看" id="btnZzk" class="btn_my_zzk" type="button"></div>
</div>
<div class="catListLink">
<h3 class="catListTitle">常用链接</h3>
<ul>

		<li><a id="SingleColumn1_ctl02_rptMainLinks_ctl00_lnkLinkItem" href="http://www.cnblogs.com/zhuqil/MyPosts.html">我的随笔</a></li>
	
		<li><a id="SingleColumn1_ctl02_rptMainLinks_ctl01_lnkLinkItem" href="http://home.cnblogs.com/zhuqil/">我的空间</a></li>
	
		<li><a id="SingleColumn1_ctl02_rptMainLinks_ctl02_lnkLinkItem" href="http://space.cnblogs.com/msg/recent">我的短信</a></li>
	
		<li><a id="SingleColumn1_ctl02_rptMainLinks_ctl03_lnkLinkItem" href="http://www.cnblogs.com/zhuqil/MyComments.html">我的评论</a></li>
	
<li><a id="itemListLink" onclick="this.blur();WarpClass('itemListLink', 'itemListLin_con');return false;" href="#">更多链接</a></li>
</ul>
<div id="itemListLin_con" style="display: none;">
<ul>

		<li><a id="SingleColumn1_ctl02_repeaterLinks_ctl00_lnkLinkItem" title="我发表过评论的随笔" href="http://www.cnblogs.com/zhuqil/OtherPosts.html">我的参与</a></li>
	
		<li><a id="SingleColumn1_ctl02_repeaterLinks_ctl01_lnkLinkItem" href="http://www.cnblogs.com/zhuqil/MyNews.html">我的新闻</a></li>
	
		<li><a id="SingleColumn1_ctl02_repeaterLinks_ctl02_lnkLinkItem" href="http://www.cnblogs.com/zhuqil/RecentComments.html">最新评论</a></li>
	
		<li><a id="SingleColumn1_ctl02_repeaterLinks_ctl03_lnkLinkItem" href="http://www.cnblogs.com/zhuqil/tag/">我的标签</a></li>
	
</ul>
</div>
</div>
<div class="catListMyTeams">
<h3 class="catListTitle">我参与的团队</h3>
<ul>

			<li>
				<a id="SingleColumn1__2594b47_TeamList_ctl00_lnkTeam" href="http://team.cnblogs.com/SearchEngine/">搜索引擎研究团队(0/0)</a>
			</li>
		
</ul>
</div>




<div class="catListTag">
<h3 class="catListTitle">我的标签</h3>
<ul>
<li><a href="http://www.cnblogs.com/zhuqil/tag/%e8%b6%85%e7%ba%a7%e7%ae%80%e5%8d%95/">超级简单</a>(15)</li><li><a href="http://www.cnblogs.com/zhuqil/tag/WPF/">WPF</a>(5)</li><li><a href="http://www.cnblogs.com/zhuqil/tag/WF4.0/">WF4.0</a>(5)</li><li><a href="http://www.cnblogs.com/zhuqil/tag/%e5%81%b7%e9%97%b2%e6%90%9e%e7%ac%91/">偷闲搞笑</a>(4)</li><li><a href="http://www.cnblogs.com/zhuqil/tag/%e5%ba%8f%e5%88%97%e5%8c%96/">序列化</a>(3)</li><li><a href="http://www.cnblogs.com/zhuqil/tag/ajax/">ajax</a>(2)</li><li><a href="http://www.cnblogs.com/zhuqil/tag/asp.net/">asp.net</a>(2)</li><li><a href="http://www.cnblogs.com/zhuqil/tag/xml%e7%bb%91%e5%ae%9a/">xml绑定</a>(1)</li><li><a href="http://www.cnblogs.com/zhuqil/tag/javascript/">javascript</a>(1)</li><li><a href="http://www.cnblogs.com/zhuqil/tag/ajax+extjs%e6%a1%86%e6%9e%b6/">ajax extjs框架</a>(1)</li>
</ul>
</div>
<div class="catListPostArchive">
<h3 class="catListTitle">随笔档案</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_Link" href="http://www.cnblogs.com/zhuqil/archive/2010/01.html">2010年1月 (21)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_Link" href="http://www.cnblogs.com/zhuqil/archive/2009/12.html">2009年12月 (35)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl03_Link" href="http://www.cnblogs.com/zhuqil/archive/2009/11.html">2009年11月 (6)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl04_Link" href="http://www.cnblogs.com/zhuqil/archive/2009/09.html">2009年9月 (1)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl05_Link" href="http://www.cnblogs.com/zhuqil/archive/2009/08.html">2009年8月 (2)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl06_Link" href="http://www.cnblogs.com/zhuqil/archive/2009/07.html">2009年7月 (6)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl07_Link" href="http://www.cnblogs.com/zhuqil/archive/2009/06.html">2009年6月 (1)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl08_Link" href="http://www.cnblogs.com/zhuqil/archive/2009/05.html">2009年5月 (1)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl09_Link" href="http://www.cnblogs.com/zhuqil/archive/2008/12.html">2008年12月 (1)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl10_Link" href="http://www.cnblogs.com/zhuqil/archive/2008/08.html">2008年8月 (7)</a> </li>

</ul>

</div>

<div class="catListFavoritCategory">
<h3 class="catListTitle">收藏夹</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl01_Link" href="http://www.cnblogs.com/zhuqil/favorite/225939.html">WPF(1)</a> <a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl01_RssLink" title="Subscribe to WPF(1)" href="http://www.cnblogs.com/zhuqil/favorite/225939.html/rss">(rss)</a></li>

</ul>

</div>

<div class="catList">
<h3 class="catListTitle">WF学习</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl01_Link" href="http://blogs.msdn.com/advancedworkflow/">advancedworkflow</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl02_Link" href="http://www.masteringbiztalk.com/blogs/jon/">Jon Flanders </a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl03_Link" href="http://blogs.msdn.com/mwinkle/default.aspx">Matt W's Windows Workflow</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl04_Link" href="http://blogs.msdn.com/pandrew/">pandrew</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl05_Link" href="http://msmvps.com/blogs/theproblemsolver/default.aspx">problemsolver</a> </li>
<li style="margin-top: 2px;">problemsolver</li>
</ul>

</div>

<div class="catListhttp://www.dgunison.cn/">
<h3 class="catListTitle">学习网站</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl01_Link" href="http://denisvuyka.wordpress.com/">WPF学习</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl02_Link" href="http://www.dotblogs.com.tw/">台湾blog</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl02_RssLink" title="Subscribe to 台湾blog" href="http://www.dotblogs.com.tw/rss">(rss)</a></li>

</ul>

</div>



<div class="catListBlogRank">
<h3 class="catListTitle">积分与排名</h3>
<ul>
	<li class="liScore">
		积分 -	82450
	</li><li class="liRank">
		排名 -	885
	</li>
</ul>
</div>



<div class="catListEssay">
<h3 class="catListTitle">最新随笔</h3>
<ul>
	
	
			<li><a id="SingleColumn1_ctl06_RecentPostsList_ctl00_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html">1.&nbsp;40条ASP.NET开发Tip</a></li>
		
			
	
			<li><a id="SingleColumn1_ctl06_RecentPostsList_ctl01_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/15/1648321.html">2.&nbsp;如何成为人尽皆知的C#开发人员</a></li>
		
			
	
			<li><a id="SingleColumn1_ctl06_RecentPostsList_ctl02_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/14/1646893.html">3.&nbsp;在DataGridView底部实现统计行</a></li>
		
			
	
			<li><a id="SingleColumn1_ctl06_RecentPostsList_ctl03_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/13/1646771.html">4.&nbsp;WF4.0工作流设计器</a></li>
		
			<li><a id="SingleColumn1_ctl06_RecentPostsList_ctl03_RecentPostsList2_ctl01_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/13/1646413.html">5.&nbsp;在WebForm上进行拖拽</a></li>
		
			
	
			<li><a id="SingleColumn1_ctl06_RecentPostsList_ctl04_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/12/1645725.html">6.&nbsp;共享一个科学计算器(js版本)</a></li>
		
			<li><a id="SingleColumn1_ctl06_RecentPostsList_ctl04_RecentPostsList2_ctl01_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/12/1644065.html">7.&nbsp;透视Datatable</a></li>
		
			<li><a id="SingleColumn1_ctl06_RecentPostsList_ctl04_RecentPostsList2_ctl02_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/12/1644710.html">8.&nbsp;WF4.0自定义持久化</a></li>
		
			
	
			<li><a id="SingleColumn1_ctl06_RecentPostsList_ctl05_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/10/1643583.html">9.&nbsp;超级简单：使用Visual Studio自动产生存储过程</a></li>
		
			
	
			<li><a id="SingleColumn1_ctl06_RecentPostsList_ctl06_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/09/1642996.html">10.&nbsp;一个有用的UrlBuilder类</a></li>
		
		
</ul>
</div>

<div class="catListComment">
<h3 class="catListTitle">最新评论<a id="SingleColumn1__fff8ce_RSSHyperlink1" title="RSS订阅最最新评论" href="http://www.cnblogs.com/zhuqil/CommentsRSS.aspx"><img title="RSS订阅最最新评论" src="xml.gif" style="border-width: 0px;"></a></h3>

	
			<div class="divRecentCommentAticle">
				<a id="SingleColumn1__fff8ce_CommentList_ctl00_Hyperlink2" class="listitem" href="http://www.cnblogs.com/zhuqil/archive/2010/01/14/1646893.html#1748674">1.&nbsp;Re:在DataGridView底部实现统计行</a>
			</div>
			<div class="divRecentComment">
				[quote]徐少侠：
换个思路吧?

无非是数据加界面

只要在提供的数据中存在这个行，GridView就自然能显示出来

基本思路
1、自定义控件
2、内涵GridView
3、暴露数据源属性，但... (卡通一下)
			</div>		
		
			<div class="divRecentCommentAticle">
				<a id="SingleColumn1__fff8ce_CommentList_ctl01_Hyperlink2" class="listitem" href="http://www.cnblogs.com/zhuqil/archive/2010/01/14/1646893.html#1748673">2.&nbsp;Re:在DataGridView底部实现统计行</a>
			</div>
			<div class="divRecentComment">
				[quote]侯唯：记得以前用两个DataGridView实现过，水平滚动条在下面那个DataGridView里显示，上面的显示垂直滚动条，下面的DataGridView只显示一行数据，不显示列头。[... (卡通一下)
			</div>		
		
			<div class="divRecentCommentAticle">
				<a id="SingleColumn1__fff8ce_CommentList_ctl02_Hyperlink2" class="listitem" href="http://www.cnblogs.com/zhuqil/archive/2010/01/14/1646893.html#1748652">3.&nbsp;Re:在DataGridView底部实现统计行</a>
			</div>
			<div class="divRecentComment">
				关注，关注。 (逍遥海盗船)
			</div>		
		
			<div class="divRecentCommentAticle">
				<a id="SingleColumn1__fff8ce_CommentList_ctl03_Hyperlink2" class="listitem" href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#1748624">4.&nbsp;Re:40条ASP.NET开发Tip</a>
			</div>
			<div class="divRecentComment">
				server.translate对JS影响比较严重，要是JS路径不一致的话-_-，老报错 (W.SiMin)
			</div>		
		
			<div class="divRecentCommentAticle">
				<a id="SingleColumn1__fff8ce_CommentList_ctl04_Hyperlink2" class="listitem" href="http://www.cnblogs.com/zhuqil/archive/2010/01/16/1649099.html#1748607">5.&nbsp;Re:40条ASP.NET开发Tip</a>
			</div>
			<div class="divRecentComment">
				我觉得……好像问题挺大的……说清楚“前提”和“为什么”很重要。 (Jeffrey Zhao)
			</div>		
		
</div>

<div class="catListView">
<h3 class="catListTitle">阅读排行榜</h3>
	
			<ul>
		
			<li>
				<a id="SingleColumn1_ctl08_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/05/1639405.html">1.&nbsp;ASP.Net4.0中新增23项功能(3561)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl08_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/15/1648321.html">2.&nbsp;如何成为人尽皆知的C#开发人员(3472)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl08_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2009/12/19/1627633.html">3.&nbsp;超级简单的DIV布局(2817)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl08_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2009/12/30/1635483.html">4.&nbsp;超级简单：一个简单的SQL工具-BuildQuery(2582)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl08_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2009/12/21/1628530.html">5.&nbsp;超级简单：在一个TextArea中如何限制行数和字符数(2358)</a>
			</li>
		
			</ul>
		
</div>

<div class="catListFeedback">
<h3 class="catListTitle">评论排行榜</h3>
	
			<ul>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/15/1648321.html">1.&nbsp;如何成为人尽皆知的C#开发人员(60)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/05/1639405.html">2.&nbsp;ASP.Net4.0中新增23项功能(37)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2009/12/19/1627633.html">3.&nbsp;超级简单的DIV布局(34)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/10/1643583.html">4.&nbsp;超级简单：使用Visual Studio自动产生存储过程(28)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2009/12/24/1631025.html">5.&nbsp;超级简单：改变网站的色彩(22)</a>
			</li>
		
			</ul>
		
</div>

<h3 class="catListTitle">60天内阅读排行</h3>
<div class="RecentComment">
	
			<ul>
		
			<li>
				<a id="SingleColumn1__15b4642_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/05/1639405.html">1.&nbsp;ASP.Net4.0中新增23项功能(3561)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__15b4642_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2010/01/15/1648321.html">2.&nbsp;如何成为人尽皆知的C#开发人员(3469)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__15b4642_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2009/12/19/1627633.html">3.&nbsp;超级简单的DIV布局(2817)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__15b4642_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2009/12/30/1635483.html">4.&nbsp;超级简单：一个简单的SQL工具-BuildQuery(2582)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__15b4642_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/zhuqil/archive/2009/12/21/1628530.html">5.&nbsp;超级简单：在一个TextArea中如何限制行数和字符数(2358)</a>
			</li>
		
			</ul>
		
</div>
			</div>
			
		</div><!--end: sideBarMain -->
	</div><!--end: sideBar 侧边栏容器 -->
	<div class="clear"></div>
	</div><!--end: main -->
	<div class="clear"></div>
	<div id="footer">
		
<!--done-->
Copyright ©2010 麒麟
	</div><!--end: footer -->
</div><!--end: home 自定义的最大容器 -->
    </form>
	
	
      
    
    
    
</body>
</html>
